﻿using Microsoft.EntityFrameworkCore;
using SQLiteCoreDB.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SQLiteCoreDB.Context
{
    public class ChartApp : DbContext
    {
        public DbSet<Login> Login { get; set; }

        public DbSet<ChatUser> ChatUser { get; set; } 
        public DbSet<FileUser> ? FileUser { get; set; }
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            string dbPath = Path.Combine(Directory.GetCurrentDirectory(), "Mydb.db");
            optionsBuilder.UseSqlite($"Data Source={dbPath}");
        }
    }
}
